package listbox

import "learngo/delegate/label"
import "fmt"

type ListBox struct {
	W label.Widget  // Embedding (delegation)
	Texts []string // Aggregation
	Index int // Aggregation
}
func (listBox ListBox) Draw() {
	fmt.Printf("[%p] - ListBox.draw(%q)\n", &listBox, listBox.Texts)
}

func (listBox ListBox) Click() {
	fmt.Printf("[%p] - ListBox.Click()\n", &listBox)
}